$words = ' my words '; $words = trim($words); var_dump($words); // string(8) "my words"
$trimmed = trim($text); var_dump($trimmed);